package com.scm.biz.dao;

import java.util.List;

import com.scm.biz.bean.BusinessFile;

public interface BusinessFileDao {
    int deleteByPrimaryKey(Long id);

    int insert(BusinessFile record);

    int insertSelective(BusinessFile record);

    BusinessFile selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BusinessFile record);

    int updateByPrimaryKey(BusinessFile record);
     
    void deleteByBusinessId(int businessId);
    

    /**
     * 根据业务记录ID和分类，查询附件集合
     * @param businessId
     * @return
     */

    List<BusinessFile> selectByBusinessId(Long businessId,String category);

    /**
     * 根据业务记录ID和分类，删除附件列表
     * @param businessId
     * @return
     */
	int deleteByBusinessId(Long businessId,String category);
	
	/**
	 * 查询图片
	 * @return
	 */
	List<String> selectImage(Long businessId,String category);

}